Online Appendix with an Additional Example for Subjective Auxiliary State for Coarse-Grained Concurrency
نویسندگان
چکیده
To illustrate separate verification of a library and its client, we adapt another classic example due to Owicki and Gries. The library is a one-place buffer with blocking put and get operations. The client is a pair of producer and consumer each with a private array of data that they concurrently communicate through the buffer. The producer iterates over its array, putting the elements into the buffer, one by one. The consumer populates its private array in order by getting from the buffer. The goal is to verify that at the end, the producer and consumer arrays have identical contents.
منابع مشابه
Subjective Concurrent Separation Logic
From Owicki-Gries’ resource invariants and Jones’ rely/guarantee to modern variants based on separation logic, axiomatic program logics for concurrency have a limited form of compositionality. Proving non-trivial properties usually requires the use of auxiliary state, which is “objective” in the sense that each thread’s auxiliary state is given a globally-unique name. Since auxiliary state expo...
متن کاملSpecifying and Verifying Concurrent Algorithms with Histories and Subjectivity
We present a lightweight approach to Hoare-style specifications for fine-grained concurrency, based on a notion of time-stamped histories that abstractly capture atomic changes in the program state. Our key observation is that histories form a partial commutative monoid, a structure fundamental for representation of concurrent resources. This insight provides us with a unifying mechanism that a...
متن کاملParaWeaver: Performance Evaluation on Programming Models for Fine Grained Threads
There is a trend towards multicore or manycore processors in computer architecture design. In addition, several parallel programming models have been introduced. Some extract concurrent threads implicitly whenever possible, resulting in fine grained threads. Others construct threads by explicit user specifications in the program, resulting in coarse grained threads. How these two mechanisms imp...
متن کاملMolecular Dynamics Simulations of Freezing Behavior of Pure Water and 14% Water-NaCl Mixture Using the Coarse-Grained Model
We performed molecular dynamics simulations using the coarse-grained model to study the freezing behavior of pure water and 14% water-salt mixture in a wide range of temperatures for a very long time around 50 nanoseconds. For the salty water, an interface in nanoscale was used. For both systems, the f...
متن کاملAn experimental study on hydraulic behavior of free-surface radial flow in coarse-grained porous media
The equations of fluids in porous media are very useful in designing the rockfill and diversion dams, gabions, breakwaters and ground water reserves. Researches have been showed that the Forchheimer equation is not sufficient for the analysis of hydraulic behavior of free-surface radial flows; because, in these flows, in addition to the hydraulic gradient and velocity, the variable of radius is...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012